package crm.util;

import javax.swing.JOptionPane;

public class ErrorHandler {
	public static void showAndWaitErrorMessage(String message){
		JOptionPane.showMessageDialog(null, message, "Error: JCRM", JOptionPane.ERROR_MESSAGE);
	}
	public static void showAndGoOnErrorMessage(final String message){
		new Thread(){
			public void run() {
				JOptionPane.showMessageDialog(null, message, "Error", JOptionPane.ERROR_MESSAGE);
			}
		}.start();
	}

}
